﻿using RepositoryEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IRepositoryDal
{
    /// <summary>
    /// 角色数据库访问层接口
    /// </summary>
    public interface IRoleInfoDal : IBaseDal<RoleInfo>
    {
        /// <summary>
        /// 添加角色信息
        /// </summary>
        /// <returns></returns>
        //bool AddRoleInfo(RoleInfo roleInfo);

        ///// <summary>
        ///// 删除角色信息
        ///// </summary>
        ///// <returns></returns>
        //bool DeleteRoleInfo(string roleInfoId);

        /// <summary>
        /// 更新角色信息
        /// </summary>
        /// <param name="roleInfo"></param>
        /// <returns></returns>
        bool UpdateRoleInfo(RoleInfo roleInfo);

        /// <summary>
        /// 获取单个角色
        /// </summary>
        /// <param name="roleInfoId"></param>
        /// <returns></returns>
        RoleInfo GetRoleInfo(string roleInfoId);

        /// <summary>
        /// 获取角色集合
        /// </summary>
        /// <returns></returns>
        List<RoleInfo> GetRoleInfos();
    }
}
